<template>
  <div id="backdiv">
    <a-layout id="components-layout-demo-responsive">
      <a-layout-sider>
        <Aside />
      </a-layout-sider>

      <a-layout>
        <a-layout-header :style="{ background: '#fff', padding: 0 }">
          <Header :inputName="username"></Header>
        </a-layout-header>
        <a-layout-content :style="{ margin: '24px 24px' }">
          <div>
            <router-view></router-view>
          </div>
        </a-layout-content>
      </a-layout>
    </a-layout>
  </div>
</template>

<script>
import Aside from "@/components/Aside";
import Header from "@/components/Header";

export default {
  name: "BackStage",
  components: {
    Aside,
    Header,
  },
  data() {
    return {
      username: "",
    };
  },
  created() {
    this.username = this.$store.state.userinfo.name;
  },
  methods: {},
  computed: {},
};
</script>
<style>
#backdiv {
  /* position: absolute; */
  height: 100vh;
  width: 100vw;
}
</style>